cc.Class({
    extends: cc.Component,

    properties: {
        icon:cc.Node,
        ami:cc.Label
    },

    // use this for initialization
    onLoad: function () {

    },

    start:function() {
        this.icon.runAction(cc.repeatForever(cc.sequence(cc.rotateTo(0.5,30),cc.rotateTo(0.5,-30))))
    },

    end:function() {
        this.icon.stopAllActions();
        this.icon.rotation = -30;
    }

    // called every frame, uncomment this function to activate update callback
    // update: function (dt) {

    // },
});
